import request from '@/utils/request'

// 生成账号
export function register(params) {
  return request({
    url: '/user/register',
    method: 'post',
    data: params
  })
}

// 获取用户列表
export function getUserList() {
  return request({
    url: '/userinfo/getUsers',
    method: 'get'
  })
}

// 删除用户modifyPassword
export function deleteUser(params) {
  return request({
    url: '/userinfo/deleteUser',
    method: 'post',
    data: params
  })
}

// 重置用户登录密码
export function modifyPassword(params) {
  return request({
    url: '/userinfo/modifyPassword',
    method: 'post',
    data: params
  })
}
